package com.yao.shop.service;

import com.yao.shop.common.Page;
import com.yao.shop.pojo.ShopProductCollection;
import com.yao.shop.pojo.vo.ShopProductCollectionVo;

/**
 * @Author: 杨德石
 * @Date: 2020/12/20 14:49
 * @Version 1.0
 */
public interface ShopProductCollectionService {

    /**
     * 切换收藏状态
     * @param shopProductCollection
     */
    void changeCollection(ShopProductCollection shopProductCollection);

    /**
     * 根据商品Id查询
     * @param productId
     * @return
     */
    ShopProductCollection getByProductId(Long productId);

    /**
     * 分页查询
     * @param page
     * @return
     */
    Page<ShopProductCollectionVo> getByPage(Page<ShopProductCollection> page);
}
